package com.example.lightoftheparty;

import android.app.*;
import android.content.*;
import android.os.*;
import android.view.*;
import android.view.View.OnClickListener;
import android.widget.*;

public class PlayActivity extends Activity {
	
	Button[] btn = new Button[1];
	
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.activity_main);
	
	    btn[0] = (Button) findViewById(R.id.bettle);
	    
	    for(int i = 0; i<btn.length; i++)
	    {
	    	btn[i].setOnClickListener(mListener);
	    }
	
	    // TODO Auto-generated method stub
	}
	OnClickListener mListener = new OnClickListener() {
		@Override
		public void onClick(View v) {
			switch(v.getId()) {
			case R.id.bettle:
				Intent bettle = new Intent(PlayActivity.this,BettleActivity.class);
				startActivity(bettle);
				break;
		}
	}
};
	    // TODO Auto-generated method stub
	}
